package com.moliku.insurance.model.dto.apiins.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 创建订单
 */
@Data
public class MakeOrderParam {
    @ApiModelProperty("接口标识(CreateOrder)")
    private String interfaceCode;
    @ApiModelProperty("请求时间yyyy-MM-dd HH:mm:ss")
    private String requestTime;
    @ApiModelProperty("数据来源(亚太分配) ")
    private String dataSource;
    @ApiModelProperty("协议号(亚太分配)")
    private String agrtCode;
    @ApiModelProperty("保险订单号(第三方平台订单号，用于幂等性校验)")
    private String outBusinessCode;
    @ApiModelProperty("Data为请求的报文体数据 CreateOrderReq")
    private MakeOrderParamData data;
    @ApiModelProperty("cancellationData为退保的报文体数据 cancelInsuranceReq")
    private MakePolicyCancellationData cancellationData;

    @Data
    public static class MakeOrderParamData {
        private CreateOrderReq createOrderReq;
    }
    @Data
    public static class MakePolicyCancellationData {
        private CancelInsuranceReq cancelInsuranceReq;
    }
}

